package com.mikao.dao;

import com.mikao.entity.GoodsEvaluate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface GoodsEvaluateDao extends JpaRepository<GoodsEvaluate, Long>, JpaSpecificationExecutor {


    GoodsEvaluate findAllByUserIdAndGoodsIdOrderByCreateTimeDesc(Long userId, Long goodsId);
}
